import os
from src.db import init_db
from src.gui import run_gui


def main():
    data_dir = os.path.join(os.path.expanduser("~"), "AppData", "Local", "pdf-manager")
    os.makedirs(data_dir, exist_ok=True)
    db_path = os.path.join(data_dir, "pdfer.db")
    init_db(db_path)
    run_gui(db_path)


if __name__ == "__main__":
    main()


